package jin.si.com.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @description: session创建
 * @ClassName HttpSessionTest
 * @Author MT
 * @Date 2021/5/11 12:01
 **/
@WebListener
public class HttpSessionTest implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("session创建======================");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("session销毁======================");
    }
}
